<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户信息维护</title>

<style type="text/css">
body {
	font: normal 11px auto "Tr ebuchet MS", Verdana, Arial, Helvetica,
		sans-serif;
	color: #4f6b72;
	background: #E6EAE9;
}

table {
	width: 700px;
	padding: 0;
	margin: 0;
}

td {
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	font-size: 11px;
	padding: 6px 6px 6px 12px;
	color: #4f6b72;
}

tr:hover {
	background-color: #B0C4DE;
}

th {
	font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	border-top: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	padding: 6px 6px 6px 12px;
	background: #CAE8EA no-repeat;
}

a:link {
	color: red;
	text-decoration: none;
}

a:hover {
	color: blue;
	text-decoration: none;
}

a:visited {
	color: green;
	text-decoration: none;
}

a:active {
	color: orange;
	text-decoration: none;
}
</style>
<script type="text/javascript">
	function deletecustomer(id) {
		//alert('id');
		if (confirm("是否确认删除！")) {
			window.location.href = "customer!delete.action?customer.id=" + id;
		}

	}
</script>

</head>
<body topmargin="100px">
	<table align="center">
		<caption>
			<font size="2"><strong>客户信息管理</strong></font>
		</caption>
		<tr>
			<th>客户id</th>
			<th>客户登录名</th>
			<th>客户昵称</th>
			<th>客户级别</th>
			<th>客户邮箱</th>
			<th>操作</th>
		</tr>
		<s:iterator value="queryUtils.pagelist">
			<tr>
				<td><s:property value="id" /></td>
				<td><s:property value="cust_id" /></td>
				<td><s:property value="nick_name" /></td>
				<td><s:property value="cust_level" /></td>
				<td><s:property value="mail" /></td>
				<td><a
					href="javascript:deletecustomer('<s:property value='id'/>')">删除</a>/
					<a
					href="backend/customer!findbyid.action?customer.id=<s:property value='id'/>">修改</a></td>
			</tr>

		</s:iterator>
		<!--c标签显示页面代码
		<c:forEach items="${queryUtils.pagelist }" var="list">
			<tr>
				<td>${list.id }</td>
				<td>${list.cust_id }</td>
				<td>${list.nick_name }</td>
				<td>${list.cust_level }</td>
				<td>${list.mail }</td><td><a href="javascript:deletecustomer('${list.id }')">删除</a>/ <a href="backend/customer!findbyid.action?customer.id=${list.id }">修改</a></td>
			</tr>
		</c:forEach>
		  -->
		<tr align="right">
			<td colspan="6">当前第<s:property value="queryUtils.pageindex" />页
				/共<s:property value="queryUtils.pagesum" />页 共<s:property
					value="queryUtils.pagetotal" />条数据 <s:property
					value="queryUtils.first" escape="false" /> <s:property
					value="queryUtils.last" escape="false" /> <s:property
					value="queryUtils.next" escape="false" /> <s:property
					value="queryUtils.end" escape="false" />
			</td>

		</tr>
		<!--c标签显示的分页显示数据
		<tr align="right">
			<td colspan="6">当前第${queryUtils.pageindex
				}页/共${queryUtils.pagesum }页 共${queryUtils.pagetotal }条数据
				${queryUtils.first } ${queryUtils.last } ${queryUtils.next }
				${queryUtils.end }
			</td>
		</tr>
		  -->
	</table>



</body>
</html>